package com.cuit.springboot.gentry.campus;

import java.io.Serializable;
import java.util.Objects;

public class CampusLevel implements Serializable {
    private Integer level;
    private String desc;

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "CampusLevel{" +
                "level=" + level +
                ", desc='" + desc + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CampusLevel that = (CampusLevel) o;
        return Objects.equals(level, that.level) &&
                Objects.equals(desc, that.desc);
    }

    @Override
    public int hashCode() {

        return Objects.hash(level, desc);
    }
}
